/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package my.test;

import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.ejb.Stateless;
import my.test.HelloWorld;
/**
 *
 * @author cloud
 */
@WebService(serviceName = "MyWebService")
@Stateless()
public class MyWebService {

    /**
     * This is a sample web service operation
     */
    @WebMethod(operationName = "hello")
    public String hello(@WebParam(name = "name") String txt) {
        return "Hello " + txt + " !";
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "accesso_database")
    public String accesso_database() {
        //TODO write your implementation code here:
        HelloWorld hv= new HelloWorld();
        String result=hv.accessDB();
        return result;
    }
    
}
